{% extends "base_template.html" %}
{% block headtitle %} Reset Password {% endblock %}
{% block title %} Reset Password {% endblock %}

{% block body %}


        <div class="ui center aligned header">

            <i class="user icon"></i>Change password

        </div>
         <div class="ui centered card inputcolor">

                {% if validlink %}

                    <form method="post" class="ui form attached fluid segment" >
                        {% csrf_token %}
                        <div class="field">
                            <label>New Password</label>
                            {{ form.new_password1 }}
                        </div>

                        <div class="field">
                        <label>New Password Confirmation</label>
                        {{ form.new_password2 }}
                        </div>

                    <button class="ui primary button" type="submit">Change password</button>
                    </form>

                {% else %}
                    <p class="ui center aligned basic segment">

                      The password reset link was invalid, possibly because it has already been used.
                      Please request a new password reset.
                    </p>
                {% endif %}
            </div>


{%endblock%}